package com.orangelife.service.propinfo;

import java.util.List;
import java.util.Map;

import com.orangelife.exception.AppBizException;
import com.orangelife.service.propinfo.model.KlCmmApartments;
import com.orangelife.service.propinfo.model.KlCmmBuilding;
import com.orangelife.service.propinfo.model.KlCmmUnit;
import com.orangelife.service.propinfo.model.PropFeeApartment;
import com.orangelife.service.propinfo.model.PropFeeBuilding;
import com.orangelife.service.propinfo.model.PropFeeUnit;
import com.orangelife.service.propinfo.model.QueryModel;

public interface IPropInfoService {
	
	public Map<String,Object> getApartmentInfo(String apartmentID) throws AppBizException;
	public List<Map<String,Object>> getApartmentInfo(QueryModel queryModel) throws AppBizException;
	
	public List<KlCmmBuilding> selectBuildingsByCommId(String commID);

	public List<KlCmmUnit> selectUnitsByBuildingIdList(List<String> buildids);

	public List<KlCmmApartments> selectApartmentsByBuildingIdList(List<String> buildids);
	
	public void insertBuildingSelective(PropFeeBuilding building);

	public void insertUnitSelective(PropFeeUnit unit);

	public void insertApartmentSelective(PropFeeApartment apartment);
	
	
	/**
	 * 用途 添加 （橙子生活）
	 * 
	 * @author ztw
	 * @date创建时间 2016-07-04 11:03:58
	 * @param commID
	
	 * @return
	 * @throws Exception
	 */
	public List<Map<String,Object>> getAllInfo(String commID) throws AppBizException;
	
	public List<Map<String,Object>> getBuilding(String commID) throws AppBizException;
	
	public List<Map<String,Object>> getUnits(String buildingID) throws AppBizException;
	
	public List<Map<String,Object>> getApartmentsByBuilding(String buildingID,String unitID) throws AppBizException;
	public List<Map<String,Object>> getApartments(Map<String,Object> param) throws AppBizException;
	
	/**
	 * 获取用户信息
	 * 
	 * @author ztw
	 * @date创建时间 2016-07-04 11:03:58
	 * @param commID
	
	 * @return
	 * @throws Exception
	 */
	public List<Map<String,Object>> getOwners(Map<String,Object> param) throws AppBizException;
	
	
	
}
